package cn.antalk.top.normal.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.bind.DefaultValue;

import java.util.Date;

/**
 * @Author: WackyBoy
 * @Date: 2021/12/4 19:02
 */

@Data
public class Comment {
    private int comment_id;
    private int parent_id;
    private int talk_id;
    private int blog_id;
    private int from_uid;
    private int to_uid;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;
    private int like_count;
    private int reply_count;

    // for judge user isLike or not , this attribute not exist in sql table, default false
    private boolean likeStatus;

}
